package com.example.jwtdemo.mapper;

import com.example.jwtdemo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author HMQ
 * @date 2020/9/20 14:33
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where userId=#{userId} and password=#{password}")
    User login(User user);
}
